trip
open | /TRIP/app/main |
assertTitle | Главная страница |
clickAndWait | //a[6]/div |
assertTitle | Компании |
verifyText | css=td | Test Airlines
type | name=name | TEST
clickAndWait | css=input.button |
verifyText | //tbody[7]/tr/td | TEST
click | css=input.button |
assertText | css=span.help-block.form-error | Заполните поле
clickAndWait | css=div.mybutton |
clickAndWait | //a[5]/div |
assertTitle | Остановки |
verifyText | css=td | MOSCOW
type | name=name | TEST
clickAndWait | css=input.button |
verifyText | //tr[13]/td | TEST
click | css=input.button |
verifyText | css=span.help-block.form-error | Заполните поле
clickAndWait | css=div.mybutton |
clickAndWait | //a[4]/div |
assertTitle | Клиенты |
verifyText | css=td > a | Eva Green
clickAndWait | css=td > a |
assertTitle | Клиент |
verifyText | //td[3] | alwaysnaked@gmail.com
clickAndWait | //a[3]/div |
verifyTextNotPresent | css=td > a | Eva Green
clickAndWait | css=td > a |
clickAndWait | //a[4]/div |
assertTitle | Изменение информации о клиенте |
type | name=last_name | ASDASD
type | name=first_name | ASDDD
type | name=middle_name | TEST
type | name=phone_number | 1337
type | name=birth | 1930-08-09
type | id=email | ami@gmail.com
clickAndWait | css=input.button |
assertTitle | Клиент |
verifyText | css=td | ASDDD TEST ASDASD
verifyText | //td[2] | 9 авг 1930
verifyText | //td[3] | ami@gmail.com
verifyText | //td[4] | 1337
clickAndWait | css=div.mybutton |
clickAndWait | //a[contains(text(),'Matthew McConaughey')] |
clickAndWait | //a[4]/div |
type | id=email | ami@gmail.com
click | css=input.button |
verifyText | id=error | Пользователь с таким E-mail'ом уже существует
clickAndWait | css=div.mybutton |
clickAndWait | //a[4]/div |
type | name=last_name |
click | css=input.button |
verifyText | css=span.help-block.form-error | Заполните поле
clickAndWait | css=div.mybutton |
clickAndWait | //a[2]/div |
assertTitle | История заказов |
verifyText | link=№3 | №3
clickAndWait | css=div.mybutton |
clickAndWait | css=div.mybutton |
clickAndWait | //a[2]/div |
assertTitle | Добавление клиента |
type | name=first_name | TEST
type | name=last_name | TEST
click | css=input.button |
verifyText | css=span.help-block.form-error | Некорректный формат даты
type | name=birth | 2000-11-11
type | id=email | ami@gmail.com
click | css=input.button |
verifyText | id=error | Пользователь с таким E-mail'ом уже существует
type | id=email | test@gmail
click | css=input.button |
verifyText | css=span.help-block.form-error | Некорректный email адрес
type | id=email | test@gmail.com
clickAndWait | css=input.button |
assertTitle | Клиенты |
verifyText | //a[contains(text(),'TEST TEST')] | TEST TEST
verifyText | //tbody[9]/tr/td[2] | 11 ноя 2000
clickAndWait | //a[3]/div |
type | name=first_name | С
assertTitle | Поиск клиентов |
verifyText | link=ASDDD TEST ASDASD | ASDDD TEST ASDASD
clickAndWait | css=input.button |
verifyTextNotPresent | C |
clickAndWait | css=input.button |
verifyText | //a[contains(text(),'TEST TEST')] | TEST TEST
type | name=last_name | C
clickAndWait | css=input.button |
verifyText | css=td > a | Matthew McConaughey
verifyText | //a[contains(text(),'Leonardo DiCaprio')] | Leonardo DiCaprio
select | id=min | label=2
select | id=max | label=0
click | css=input.button |
verifyText | id=error | Возраст 'от' не может быть больше 'до'
select | id=min | label=Возраст от
select | id=max | label=Возраст до
select | id=comp | label=Turkish Airlines
clickAndWait | css=input.button |
verifyText | css=td | Christopher Nolan
verifyText | //tbody[3]/tr/td | Michael Fassbender
clickAndWait | css=div.mybutton |
clickAndWait | css=div.mybutton |
clickAndWait | //a[3]/div |
assertTitle | Маршруты |
verifyText | link=№1 | №1
clickAndWait | link=№1 |
assertTitle | Маршрут №1 |
verifyText | css=td | 1
verifyText | //td[2] | test1
verifyText | //td[3] | Активен
verifyText | //td[4] | MOSCOW ► LONDON ► JOHANNESBURG ► ANTANANARIVO
clickAndWait | //a[2]/div |
verifyTextNotPresent | link=№1 | №1
clickAndWait | xpath=(//a[contains(text(),'№55')])[2] |
clickAndWait | //a[3]/div |
assertTitle | Изменение маршрута №55 |
verifyValue | name=name | test5.1
verifyValue | name=number | 55
verifyText | name=active | Активен Неактивен
verifyElementPresent | id=stop0 |
verifyElementPresent | id=stop1 |
verifyElementPresent | id=stop2 |
verifyElementPresent | id=stop3 |
click | xpath=(//button[@type='button'])[2] |
select | id=stop1 | label=Выберите остановку
click | css=button.button |
assertNotTitle | Маршруты |
select | id=stop1 | label=BERLIN
click | css=button.button |
assertNotTitle | Маршруты |
select | id=stop1 | label=ROME
select | name=active | label=Неактивен
clickAndWait | css=button.button |
verifyText | //tr[6]/td | №55
verifyText | //tr[6]/td[3] | Активен
verifyText | //tr[7]/td | №55
verifyText | //tr[7]/td[3] | Неактивен
clickAndWait | link=№55 |
clickAndWait | //a[3]/div |
select | name=active | label=Активен
clickAndWait | css=button.button |
verifyText | //tr[5]/td | №55
verifyText | //tr[5]/td[3] | Активен
verifyText | //tr[6]/td | №55
verifyText | //tr[6]/td[3] | Неактивен
clickAndWait | link=№55 |
clickAndWait | //a[2]/div |
assertTitle | Маршруты |
verifyText | //tr[5]/td | №55
verifyText | //tr[5]/td[3] | Неактивен
verifyText | //tr[6]/td | №55
verifyText | //tr[6]/td[3] | Активен
clickAndWait | //a[2]/div |
click | css=button.button |
verifyText | css=span.help-block.form-error | Заполните поле
verifyText | id=error | Выберите хотя бы две остановки
type | name=name | 22
type | name=number | 1111111111111
click | id=add |
select | id=stop1 | label=MOSCOW
select | id=stop0 | label=JOHANNESBURG
click | id=add |
select | id=stop2 | label=WASHINGTON
click | css=button.button |
verifyText | css=span.help-block.form-error | Число не подходит
type | name=number | 11
select | id=stop1 | label=JOHANNESBURG
click | css=button.button |
assertNotTitle | Маршруты |
select | id=stop1 | label=Выберите остановку
click | css=button.button |
assertNotTitle | Маршруты |
select | id=stop1 | label=ROME
click | id=add |
verifyElementPresent | id=stop3 |
click | xpath=(//button[@type='button'])[4] |
verifyElementNotPresent | id=stop3 |
clickAndWait | css=button.button |
verifyText | //tr[7]/td | №11
verifyText | //tr[7]/td[2] | 22
verifyText | //tr[7]/td[3] | Активен
verifyText | //tr[7]/td[4] | JOHANNESBURG
verifyText | //tr[7]/td[5] | WASHINGTON
clickAndWait | css=div.mybutton |
clickAndWait | css=div.mybutton |
assertTitle | Рейсы |
verifyText | css=td | №1
clickAndWait | link=№1 |
assertTitle | Рейс №1 |
verifyText | css=td | №1
verifyText | //td[2] | №20
verifyText | //td[3] | MOSCOW Сб 4 июн 2016 11:00
verifyText | //td[4] | WASHINGTON Сб 4 июн 2016 11:00 - Сб 4 июн 2016 12:00 Цена: 1100
verifyText | //td[5] | PARIS Сб 4 июн 2016 12:00 Цена: 1010
verifyText | //td[6] | Test Airlines
verifyElementPresent | //a[2]/div |
clickAndWait | //a[3]/div |
verifyTextNotPresent | css=td | №1
clickAndWait | link=№2 |
assertTitle | Рейс №2 |
clickAndWait | //a[4]/div |
assertTitle | Изменение рейса №2 |
verifyValue | name=number | 2
verifyElementPresent | name=cid |
verifyElementPresent | id=selectRoute |
verifyValue | name=sec[0] | 2016-07-05T11:30
verifyValue | name=sec[1] | 2016-07-05T12:00
verifyValue | name=sec[2] | 2016-07-05T13:00
verifyValue | name=sec[3] | 2016-07-05T15:00
verifyValue | name=list[1] | 4000
verifyValue | name=list[0] | 3000
select | id=selectRoute | label=42
verifyText | name=sec[0] |
verifyText | name=sec[1] |
verifyText | name=list[0] |
type | name=list[0] | 333333333
click | id=edit |
verifyText | css=span.help-block.form-error | Число не подходит
type | name=list[0] | 333
type | name=sec[0] | 2000-01-01T11:11
type | name=sec[1] | 2000-01-01T11:11
clickAndWait | id=edit |
assertTitle | Рейсы |
verifyText | //tr[6]/td | №2
verifyText | //tr[6]/td[2] | №42
verifyText | //tr[6]/td[3] | JOHANNESBURG Сб 1 янв 2000 11:11
verifyText | //tr[6]/td[4] | MOSCOW Сб 1 янв 2000 11:11
verifyText | //tr[6]/td[5] | 20
verifyText | //tr[6]/td[6] | Jetblue Airways
verifyText | //tr[6]/td[7] | Нет
verifyText | css=td | №2
clickAndWait | xpath=(//a[contains(text(),'№2')])[3] |
verifyText | //a[2]/div | Удалить
clickAndWait | css=div.mybutton |
clickAndWait | //a[2]/div |
assertTitle | Добавление рейса |
click | id=add |
verifyText | css=span.help-block.form-error | Заполните поле
type | name=number | 22
type | name=seats | 1111111
click | id=add |
verifyText | css=span.help-block.form-error | Число не подходит
type | name=seats | 22
select | name=cid | label=Test Airlines
select | id=selectRoute | label=42
type | name=sec[0] | 2000-11-11T11:11
type | name=sec[1] | 2000-11-11T11:11
type | name=list[0] | 22
verifyText | name=sec[0] |
verifyText | name=sec[1] |
verifyText | name=list[0] |
clickAndWait | id=add |
verifyText | //tr[7]/td | №22
verifyText | //tr[7]/td[2] | №42
verifyText | //tr[7]/td[3] | JOHANNESBURG Сб 11 ноя 2000 11:11
verifyText | //tr[7]/td[4] | MOSCOW Сб 11 ноя 2000 11:11
verifyText | //tr[7]/td[5] | 22
verifyText | //tr[7]/td[6] | Test Airlines
verifyText | //tr[7]/td[7] | Нет
clickAndWait | css=div.mybutton |
clickAndWait | //a[2]/div |
verifyElementPresent | css=th |
click | id=search |
assertTitle | Поиск рейсов |
select | name=list[2] | label=MOSCOW
select | name=list[3] | label=ANTANANARIVO
clickAndWait | id=search |
verifyText | //td[3] | MOSCOW 2014-02-05T11:00
verifyText | //td[4] | ANTANANARIVO 2014-02-06T03:00
select | name=list[2] | label=ANTANANARIVO
select | name=list[3] | label=TEST
type | id=mins | 2
type | id=maxs | 0
click | id=search |
verifyText | //td[3] | MOSCOW 2014-02-05T11:00
verifyText | //td[4] | ANTANANARIVO 2014-02-06T03:00
type | id=mins | 0
type | id=maxs | 13
select | name=list[2] | label=MOSCOW
select | name=list[3] | label=MOSCOW
clickAndWait | id=search |
verifyElementNotPresent | css=th |
clickAndWait | css=div.mybutton |
clickAndWait | link=№2 |
clickAndWait | //a[2]/div |
assertTitle | Оформление заказа на рейс №2 |
type | id=email | asda@gmail.c
click | id=order |
verifyText | css=span.help-block.form-error | Некорректный email адрес
select | id=st1 | label=MOSCOW
type | id=email | asdaa@gmail.com
verifyText | id=st2 | До WASHINGTON PARIS
select | id=st1 | label=От
select | id=st2 | label=WASHINGTON
verifyText | id=st1 | От MOSCOW
select | id=st1 | label=MOSCOW
verifyText | id=info | Цена: 3000. Количество мест: 19.
click | id=order |
verifyText | id=error | Не найдено пользователя с таким E-mail'ом.
type | id=email | ami@gmail.com
clickAndWait | id=order |
assertTitle | История заказов |
verifyText | css=td | №2
verifyText | //td[2] | MOSCOW
verifyText | //td[3] | WASHINGTON
verifyText | //td[4] | Jetblue Airways
clickAndWait | link=№2 |
clickAndWait | //a[2]/div |
assertTitle | Оформление заказа на рейс №2 |
type | id=email | ami@gmail.com
click | id=order |
select | id=st1 | label=MOSCOW
verifyText | id=st2 | До WASHINGTON PARIS
select | id=st1 | label=От
select | id=st2 | label=WASHINGTON
verifyText | id=st1 | От MOSCOW
select | id=st1 | label=MOSCOW
verifyText | id=error | Вы уже совершали заказ на данный маршрут.
clickAndWait | css=div.mybutton |
clickAndWait | css=div.mybutton |
verifyText | //td[5] | 18
clickAndWait | css=div.mybutton |
clickAndWait | //a[4]/div |
clickAndWait | link=ASDDD TEST ASDASD |
clickAndWait | //a[3]/div |
clickAndWait | css=td > a |
clickAndWait | //a[3]/div |
clickAndWait | css=td > a |
clickAndWait | //a[3]/div |
clickAndWait | css=td > a |
clickAndWait | //a[3]/div |
clickAndWait | css=td > a |
clickAndWait | //a[3]/div |
clickAndWait | css=td > a |
clickAndWait | //a[3]/div |
clickAndWait | link=ИВАН иван Иван |
clickAndWait | //a[3]/div |
clickAndWait | css=td > a |
clickAndWait | //a[3]/div |
verifyElementNotPresent | css=td |
clickAndWait | css=div.mybutton |
clickAndWait | //a[3]/div |
clickAndWait | link=№20 |
clickAndWait | //a[2]/div |
clickAndWait | link=№33 |
clickAndWait | //a[2]/div |
clickAndWait | link=№42 |
clickAndWait | //a[2]/div |
clickAndWait | link=№55 |
clickAndWait | //a[2]/div |
clickAndWait | link=№55 |
clickAndWait | //a[2]/div |
clickAndWait | link=№11 |
clickAndWait | //a[2]/div |
verifyElementNotPresent | css=td |
clickAndWait | css=div.mybutton |
verifyElementNotPresent | css=td |
clickAndWait | css=div.mybutton |
verifyElementNotPresent | css=td |
clickAndWait | css=div.mybutton |